package com.yqy.android.common;

import com.android.base.jump.PanelForm;
import com.android.base.jump.PanelInfo;
import com.yqy.android.MainActivity;
import com.yqy.android.TestActivity1;
import com.yqy.android.TestActivity2;

import java.util.ArrayList;

/**
 * Created by YANGQIYUN on 2016/5/19.
 */
public class PanelFormManager {

    //注意 这里的 panel id 必须和下面 panelform 表中的各个panel的index一致，pannel id 都大于 0
    // 欢迎页
    public static int ID_WELCOME = 1;
    public static int ID_MAIN = 0;
    // 首页
    public static int ID_TEST2 = 3;

    // 首页
    public static int ID_HOME = 3;
    // 登录
    public static int ID_LOGIN = 1;
    // 注册
    public static int ID_REGISTER = 5;
    // 注册设置昵称
    public static int ID_REGISTER_NICK_NAME = 6;
    // 注册验证码
    public static int ID_REGISTER_PHONE_CODE = 7;
    // 注册设置密码
    public static int ID_REGISTER_RESETPSW = 8;
    // 国家列表
    public static int ID_EARTH_LIST = 9;
    // 地区列表
    public static int ID_REGION_LIST = 10;
    // 子地区列表
    public static int ID_SUB_REGION_LIST = 109;

    // 通信
    public static int ID_IM = 11;
    // 足迹
    public static int ID_FOOT_PRINT = 12;
    // 加团
    public static int ID_TEAM = 13;
    // 地图
    public static int ID_MAP = 14;
    // 我的
    public static int ID_MINE = 15;

    // 新团
    public static int ID_NEW_TEAM = 16;
    // 当前团
//    public static final int ID_CURRENT_TEAM = 17;
    // 查询到的团
    public static int ID_NEW_TEAM_RESULT = 18;
    // 修改昵称
    public static int ID_EDIT_NICK_NAME = 19;
    // 编辑资料
    public static int ID_EDIT_MINE_INFO = 20;
    // 关于我们
    public static int ID_ABOUT_OUR = 21;
    // 账号绑定
    public static int ID_ACCOUNT_BIND = 22;
    // 编辑标签
    public static int ID_EDIT_TAG = 23;
    // 编辑心情
    public static int ID_EDIT_MOOD = 24;
    // 修改密码
    public static int ID_MOTIFY_PSW = 25;
    // 绑定邮箱
    public static int ID_BIND_EMAIL = 26;
    // 绑定手机
    public static int ID_BIND_PHONE = 27;
    // 更换邮箱
    public static int ID_CHANGE_EMAIL = 28;
    // 更换手机
    public static int ID_CHANGE_PHONE = 29;
    // 绑定手机后设置密码
    public static int ID_SHE_PSW_BY_BIND = 30;
    // 通讯通讯录
    public static int ID_IM_CONTACT_LIST = 31;
    // 聊天对话
    public static int ID_IM_CHAT = 32;
    // 百度地图
    public static int ID_JFW_BAIDU_MAP = 33;
    // 谷歌地图
    public static int ID_JFW_GOOGLE_MAP = 34;
    // 扫二维码
    public static int ID_SCAN_CAPTURE = 35;
    //寻找好友
    public static int ID_SEARCH_FRIEND_BY_PHONE = 36;
    //搜索好友信息
    public static int ID_SEARCH_FRIEND_RESULT = 37;
    //好友详情
    public static int ID_SEARCH_FRIEND_DTL = 38;
    //好友申请列表
    public static int ID_APPLY_CONTACT_LIST = 39;
    //个人足迹(足迹详情)
    public static int ID_FOOT_PRINT_DTL = 40;
    //闹钟设置
    public static int ID_ALARM_CLOCK = 41;

    //没有当前团
    public static int ID_EMPTY_CURRENT_TEAM = 42;
    //正式团
    public static int ID_FINAL_TEAM = 43;
    //正式团
    public static int ID_CURRENT_TEAM_RQ_CODE = 44;
    //加团新人申请
    public static int ID_GROUP_APPLY = 45;
    // 地图地址搜索
    public static int ID_JFW_MAP_SEARCH = 46;
    // 通告
    public static int ID_GROUP_NOTICE = 47;
    // 足迹
    public static int ID_FOOT_PRINT_STEP = 48;
    // 用户协议
    public static int ID_USER_DISCLAIMER = 49;
    //搜索团员
    public static int ID_SEARCH_TEAM_MEMBER = 50;
    //搜索团员
    public static int ID_ADD_TEAM_MEMBER = 51;
    // 老团友列表
    public static int ID_OLD_TEAM_LIST = 52;
    // 老团友列表
    public static int ID_GROUP_MEMBER_LIST = 53;
    // 好友详情的设置界面
    public static int ID_IM_SET = 54;
    //忘记密码
    public static int ID_FORGET_PSW_BY_PHONE = 55;
    //忘记密码 -- 获取密码
    public static int ID_FORGET_PSW_GET_CODE = 56;
    //忘记密码 -- 设置密码
    public static int ID_FORGET_PSW_RESET = 57;
    //我的足迹
    public static int ID_FOOT_PRINT_MINE = 58;
    //小游戏
    public static int ID_GAME = 59;
    //倒计时
    public static int ID_CURRENT_CLOCK = 60;
    //认证申请
    public static int ID_REQUEST_AUTHENTIED = 61;
    //旅行机构
    public static int ID_TRAVEL_AGENCY = 62;

    public PanelFormManager getInstance() {
        PanelForm.panelform.clear();
        initPanelform();
        return this;
    }

    public void initPanelform() {

        PanelForm.panelform.add(new PanelInfo(ID_MAIN = PanelForm.panelform.size(), MainActivity.class.getName(), "main", PanelInfo.PANEL_LEVEL_FIRST));
        PanelForm.panelform.add(new PanelInfo(ID_LOGIN = PanelForm.panelform.size(), TestActivity1.class.getName(), "test1", PanelInfo.PANEL_LEVEL_FIRST));
        PanelForm.panelform.add(new PanelInfo(ID_TEST2 = PanelForm.panelform.size(), TestActivity2.class.getName(), "test2", PanelInfo.PANEL_LEVEL_FIRST));

        PanelForm.tabIds = new ArrayList<>();
        PanelForm.tabIds.add(ID_MAIN);
        PanelForm.tabIds.add(ID_LOGIN);
        PanelForm.tabIds.add(ID_TEST2);

    }

}
